package com.xbongbong.paas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 工作流引用类型
 * @author 魏荣杰
 *
 */
@Getter
public enum WorkflowLinkBusinessTypeEnum {

    /**
     * 阶段流程
     */
    stage_type(1, "enum.workflowLinkBusinessTypeEnum.name.stageType")
    ;

    private final Integer code;

    private final String name;

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }

    WorkflowLinkBusinessTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
